define
(    
    function()
    {        
        TaskCreateAction = function(predecessorTaskId, task)
        {                      
            this.toJSON = function()
            {
                return {id: this.id, predecessorTaskId: predecessorTaskId, task: task};
            };
        };

        TaskCreateAction.prototype.id = TaskCreateAction.id = "TaskCreateAction";
        return TaskCreateAction;        
    }
);